﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ctrfoldermanager.ascx.cs" Inherits="Folders_ctrfoldermanager" %>
<div>
   <div style="float:left; width:40%;">
          
       <asp:LinkButton ID="ltnNewFolder" runat="server" onclick="ltnNewFolder_Click">new</asp:LinkButton>
       <br />
       <asp:LinkButton ID="lbtnBack" runat="server" onclick="lbtnBack_Click" 
           CommandArgument="-1">...</asp:LinkButton>
       <br />
       <asp:Repeater ID="rptFolders" runat="server" 
           onitemcommand="rptFolders_ItemCommand">
           <ItemTemplate>
               <div>
                 <asp:LinkButton ID="lbtnFolder" ToolTip='<%#Eval("Owner")%>' CommandName="CMDLIST" CommandArgument='<%#Eval("Id")%>' runat="server"><%#Eval("FolderName")%></asp:LinkButton>           
               </div>               
           </ItemTemplate>
       </asp:Repeater>
    </div>
   <div style="float:left; width:59%;">
       <asp:LinkButton ID="lbtnNewFile" runat="server" onclick="lbtnNewFile_Click">Upload</asp:LinkButton>
       <br />
       <asp:Repeater ID="rptFiles" runat="server">
         <HeaderTemplate>
            <table>
            
         </HeaderTemplate>
         <ItemTemplate>
              <tr>
                  <td>
                      <a href='<%# GenFileUrl(Container.DataItem)%>'><%#Eval("Filename")%></a>
                      <asp:LinkButton ID="lbtnFile" CommandName="CMDXXX" CommandArgument='<%#Eval("Id")%>' runat="server">
                      <%#Eval("Filename")%>
                      </asp:LinkButton>
                  </td>
                  <td>
                 <%--   <%#Eval("")%>--%>
                  </td>
                  <td>
                   <%-- <%#Eval("")%>--%>
                  </td>
                  <td>
                   <%-- <%#Eval("")%>--%>
                  </td>
              </tr>
         </ItemTemplate>
         <FooterTemplate>
           </table>
         </FooterTemplate>  
       </asp:Repeater>
    </div>
</div>
<asp:HiddenField ID="hdCurrentFolderId" runat="server" />
